package com.imooc.cloud.mall.practice.zuul.feign;

import com.imooc.cloud.mall.practice.user.model.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * ClassName: UserFeignClient
 * Package: com.imooc.cloud.mall.practice.zuul.feign
 *
 * @Author 马学兴
 * @Create 2024/3/10 0:40
 * @Version 1.0
 * Description:Feign客户端
 */

//使用feign远程调用user模块中的方法
@FeignClient(value = "cloud-mall-user")
public interface UserFeignClient {
    @PostMapping("/checkAdminRole")
    public Boolean checkAdminRole(@RequestBody User user);
}
